﻿namespace OasisCiq.Xpil
{
    using System;
    using System.Linq;

    /// <summary>
    /// List of identifier types
    /// </summary>
    public class PartyIdentifierTypeList : XS.XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[] 
        {
            "TaxID",
            "CompanyID",
            "NationalID",
            "RegistrationID"
        };

        public PartyIdentifierTypeList(string value)
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}